from django.urls import path, include,re_path
from apps.basic import views

urlpatterns = [
    # re_path与path功能相同，但是可以使用正则表达式
    re_path('user_reg/([0-1]{1})/$', views.user_reg, name="lms_user_reg"),
    path('user_login/', views.user_login, name="lms_login"),
    path('user_logout/', views.user_logout, name="lms_logout"),
    path('ajax_login_data/', views.ajax_login_data),
    path('index/', views.user_index),
    path('user_info_manage/', views.user_info_manage, name="lms_user_info"),
    path('ajax_user_info_search/', views.ajax_user_info_search),
    path('ajax_user_approval/', views.ajax_user_approval),
    path('user_group_manage/', views.user_group_manage,name="lms_user_group"),
    path('ajax_add_group/', views.user_group_add),
    path('ajax_change_group/', views.user_group_change),
    path('ajax_delete_group/', views.user_group_delete),
    path('group_permissions_manage/', views.group_permissions_manage, name="lms_group_permissions"),
    path('ajax_init_group_permissions/', views.ajax_init_group_permissions),
    path('ajax_group_permissions_save/', views.ajax_group_permissions_save),
    path('user_group_assignment/', views.user_group_assignment,name="lms_user_group_assignment"),
    path('ajax_add_group_to_user/', views.ajax_add_group_to_user),
    path('ajax_delete_group_to_user/', views.ajax_delete_group_to_user),
    path('password_change/', views.user_password_change, name="lms_user_password_change"),
    path('user_info_change/', views.user_info_change, name="lms_user_info_change"),


]
